//
//  NSDate+QiMingADKit.h
//  QiMingADKit
//
//  Created by 陈坤 on 2020/3/18.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface NSDate (QiMingADKit)

@property (nonatomic, assign, readonly) NSInteger qmad_year;
@property (nonatomic, assign, readonly) NSInteger qmad_month;
@property (nonatomic, assign, readonly) NSInteger qmad_day;
@property (nonatomic, assign, readonly) NSInteger qmad_hour;
@property (nonatomic, assign, readonly) NSInteger qmad_minute;
@property (nonatomic, assign, readonly) NSInteger qmad_seconds;
@property (nonatomic, assign, readonly) NSInteger qmad_nanoseconds;
@property (nonatomic, assign, readonly) NSInteger qmad_weekday;

+ (nullable NSDate *)qmad_dateWithDateString:(NSString *)dateString;

+(nullable NSDate *)qmad_dateWithFormat_yyyy_MM_dd_HH_mm_ss_string:(NSString *)string;
+(nullable NSDate *)qmad_dateWithFormat_yyyy_MM_dd_HH_mm_string:(NSString *)string;
+(nullable NSDate *)qmad_dateWithFormat_yyyy_MM_dd_HH_string:(NSString *)string;
+(nullable NSDate *)qmad_dateWithFormat_yyyy_MM_dd_string:(NSString *)string;
+(nullable NSDate *)qmad_dateWithFormat_yyyy_MM_string:(NSString *)string;

@end

NS_ASSUME_NONNULL_END
